package com.ruoyi.ams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ams.domain.AmsAssetAllocationDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 资产调拨单明细Mapper接口
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Mapper
public interface AmsAssetAllocationDetailMapper extends BaseMapper<AmsAssetAllocationDetail>
{
    /**
     * 查询资产调拨单明细
     * 
     * @param allocationDetailId 资产调拨单明细主键
     * @return 资产调拨单明细
     */
    public AmsAssetAllocationDetail selectAmsAssetAllocationDetailByAllocationDetailId(Long allocationDetailId);

    /**
     * 查询资产调拨单明细列表
     * 
     * @param amsAssetAllocationDetail 资产调拨单明细
     * @return 资产调拨单明细集合
     */
    public List<AmsAssetAllocationDetail> selectAmsAssetAllocationDetailList(AmsAssetAllocationDetail amsAssetAllocationDetail);

    /**
     * 新增资产调拨单明细
     * 
     * @param amsAssetAllocationDetail 资产调拨单明细
     * @return 结果
     */
    public int insertAmsAssetAllocationDetail(AmsAssetAllocationDetail amsAssetAllocationDetail);

    /**
     * 修改资产调拨单明细
     * 
     * @param amsAssetAllocationDetail 资产调拨单明细
     * @return 结果
     */
    public int updateAmsAssetAllocationDetail(AmsAssetAllocationDetail amsAssetAllocationDetail);

    /**
     * 删除资产调拨单明细
     * 
     * @param allocationDetailId 资产调拨单明细主键
     * @return 结果
     */
    public int deleteAmsAssetAllocationDetailByAllocationDetailId(Long allocationDetailId);

    /**
     * 批量删除资产调拨单明细
     * 
     * @param allocationDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAmsAssetAllocationDetailByAllocationDetailIds(Long[] allocationDetailIds);
}
